package com.ys.entity.sys;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TS_OperateOrg", catalog="Id")
public class TsOperateOrg extends BaseEntity<TsOperateOrg> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pid", nameJava="pid", typeDataBase="bigint")
	private Long pid;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="NodeLft", nameJava="nodeLft", typeDataBase="bigint")
	private Long nodeLft;
	@YsField(nameDataBase="NodeRgt", nameJava="nodeRgt", typeDataBase="bigint")
	private Long nodeRgt;
	@YsField(nameDataBase="Floor", nameJava="floor", typeDataBase="int")
	private Integer floor;
	@YsField(nameDataBase="HeadVgsbm", nameJava="headVgsbm", typeDataBase="varchar")
	private String headVgsbm;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TsOperateOrg setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getPid() {
		return pid;
	}
	public TsOperateOrg setPid(Long pid) {
		this.pid = pid;
		return this;
	}
	public String getName() {
		return name;
	}
	public TsOperateOrg setName(String name) {
		this.name = name;
		return this;
	}
	public Long getNodeLft() {
		return nodeLft;
	}
	public TsOperateOrg setNodeLft(Long nodeLft) {
		this.nodeLft = nodeLft;
		return this;
	}
	public Long getNodeRgt() {
		return nodeRgt;
	}
	public TsOperateOrg setNodeRgt(Long nodeRgt) {
		this.nodeRgt = nodeRgt;
		return this;
	}
	public Integer getFloor() {
		return floor;
	}
	public TsOperateOrg setFloor(Integer floor) {
		this.floor = floor;
		return this;
	}
	public String getHeadVgsbm() {
		return headVgsbm;
	}
	public TsOperateOrg setHeadVgsbm(String headVgsbm) {
		this.headVgsbm = headVgsbm;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TsOperateOrg setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TsOperateOrg setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TsOperateOrg setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TsOperateOrg tsOperateOrg(
		Long pid,
		String name,
		Long nodeLft,
		Long nodeRgt,
		Integer floor,
		String headVgsbm,
		Integer status
			) {
		TsOperateOrg entity = new TsOperateOrg();
		entity.setPid(pid);
		entity.setName(name);
		entity.setNodeLft(nodeLft);
		entity.setNodeRgt(nodeRgt);
		entity.setFloor(floor);
		entity.setHeadVgsbm(headVgsbm);
		entity.setStatus(status);
		return entity;
	}
}